package cn.itcast.goods.category.domain;

import java.util.List;

public class Cate {
    private String cid;
    private String cname;
    private String desc;
    private int  orderBy;
    private Cate parent;//父分类
    private List<Cate> child;//子分类

    public List<Cate> getChild() {
        return child;
    }

    public void setChild(List<Cate> child) {
        this.child = child;
    }

    public Cate getParent() {
        return parent;
    }

    public void setParent(Cate parent) {
        this.parent = parent;
    }

    @Override
    public String toString() {
        return "Cate{" +
                "cid='" + cid + '\'' +
                ", cname='" + cname + '\'' +
                ", desc='" + desc + '\'' +
                ", orderBy=" + orderBy +
                '}';
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }


    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public int getOrderBy() {
        return orderBy;
    }

    public void setOrderBy(int orderBy) {
        this.orderBy = orderBy;
    }
}
